package com.woniuxy.charin.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.charin.model.entity.ChargingGun;
import com.woniuxy.charin.model.entity.ChargingPile;
import com.woniuxy.charin.model.vo.PageResponse;

import java.util.List;

/**
 * 服务接口
 *
 * @author
 * @description
 * @since 2024-12-23 20:41:46
 */
public interface ChargingPileService extends IService<ChargingPile> {
    PageResponse<ChargingPile> getChargingPileList(
            String pileName, String pileCode, String pileStatus, int page, int size);

    void deleteChargingPile(Integer id);

    void addChargingPile(ChargingPile chargingPile);

    void updateChargingPile(ChargingPile chargingPile);

    List<ChargingPile> getChargingPileByStationId(Integer stationId);

    List<ChargingPile> listByStationId(Long id);

    List<ChargingGun> createChargingPileWithChargingGuns(ChargingPile chargingPile, List<ChargingGun> chargingGuns);

    List<ChargingGun> updateChargingPilesWithChargingGun(ChargingPile chargingPile, List<ChargingGun> chargingGuns);

    void offlineChargingPile(int id);

    //故障中
    void setChargingPileCracked(int id);

    void onlineChargingPile(int id);

    ChargingPile getChargingPileById(Integer id);
}